<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>51问医生</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    {{--<link rel="shortcut icon" href="/Public/mobile/favicon.ico" type="image/x-icon" />--}}
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-status-bar-style" content="yes"/>
    <script src="{{url('/js/jquery.min.js')}}" type="text/javascript"></script>
    <link rel="stylesheet" href="{{url('new/css/common.css')}}" />
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script src="{{url('new/js/doctor_list.js')}}"></script>
    <link rel="stylesheet" href="{{url('new/css/answer.css')}}" />
</head>
<body>
<div class="content-box">
    <div class="ask">
        <span class="lable">问题：</span>{{$question->question}}</div>
    <div class="doc-card content-box ax-flexbox">
        <div class="icon-cover">
            <img class='doctor-icon' src="@if($doctor){{route('Api.Image.Show',['id'=>$doctor->doc_img])}}@else{{route('Api.Image.Show',['id'=>0])}}@endif">
            <span></span>
        </div>
        <div class="doc-info-box">
            <p>
                <span class="name">{{$doctor->doc_name}}</span>
                <span class="title">{{$doctor->station}}</span></p>
            <p class="hospital">@if($hospital){{$hospital->name}}@endif</p></div>
    </div>
    <div class="answer-panel">
        {{--<div class="answer-box answer-box-noanswer" ng-if="info.status !== 50">--}}
        {{--<p class="tip " ng-if="info.status == 35||info.status == 40">医生未回答</p>--}}
        {{--<p class="tip" ng-if="info.status ==80 ||info.status ==90 ">--}}
        {{--<span class="ignore" ng-if="info.status == 90">info.ignorereason</span>未回答，已关闭</p>--}}
        {{--<p class="tip" ng-if="info.status !==15 && (info.status <= 30) && info.questionType == 2">暂时还没有医生回答，请耐心等待</p>--}}
        {{--<p class="tip" ng-if="info.status !==15 && (info.status <= 30) && info.questionType == 1" ng-click="goDocindex()">info.docInfo.docName医生还未回答，请耐心等待</p>--}}
        {{--<p class="tip" ng-if="info.status == 70">该问题已被推荐给其他医生，请耐心等待</p>--}}
        {{--<p class="tip" ng-if="info.status == 60 || info.status == 15">医生未回答，已关闭</p>--}}
        {{--</div>--}}
        <div class="answer-box">
            <!--文字&付过了|后付&看过-->
            <div class="text-area">
                <div id="text" class="text">
                    <span class="lable">回答：</span>{{$question->answer}}
                </div>
            </div>

            <div class="answer-info-wrapper">
                <!--限时免费-->
                <div class="answer-info">
                    {{--<span class="useful" ng-click="doUseful()" ng-class="{'liked':info.isPraised}">info.praisedCount&nbsp;--}}
                    {{--<svg>--}}
                    {{--<use xlink:href="#like"></use></svg>--}}
                    {{--</span>--}}
                    <span class="viewed">{{$question->read_num}}&nbsp;看过</span>
                </div>
            </div>
        </div>
        <!--ax-wx-->
        <!-- <div class="notVip" ng-if="!isvipon && !isNeedFollow && info.status==5 0 && !payStatus.isNeedPay&& payStatus.feePlace==1 " ng-click="toMyvip()">再支付6元<i>9元</i> 即享1个月免费看一答 》</div> -->
        <!--/ax-wx-->
        <!--后付&看过&非vip&非限时免费-->
        <div class="afterPayBtn ax-flexBox ">
            <a href="{{route('M.Doctor.myQuestions')}}">
                {{--<span class="refuse words" ng-class="{'words':!payStatus.isNeedPay}">--}}
                <span class="refuse words" id="">
                {{--<i class="coupon-status">couponStatus</i>--}}
                    回到问题列表
            </span>
            </a>
            {{--<span class="sure" ng-click="pay()" ng-if="info.answer.answerType == 2&& payStatus.isNeedPay">支持payStatus.price元</span>--}}
            {{--<span class="sure" ng-click="pay()" ng-if="info.answer.answerType == 1&& payStatus.isNeedPay ">支持payStatus.price元</span>--}}
        </div>
        <div style="text-align: center">
            <img src="{{url('new/images/51qrcode.jpg')}}">
            <p>长按识别二维码可关注“51问医生”公众号</p>
        </div>
    </div>
</div>
<script>


    $(function(){

        var imgUrl = "@if($doctor){{route('Api.Image.ShowPX',['id'=>$doctor->doc_img,'px'=>'100px'])}}@else{{url('images/logo.jpg')}}@endif";
        var lineLink = "{{route('M.Doctor.myAnswer')}}?q_id={{$question->id}}";
        var descContent = '{{$question->answer}}';
        var shareTitle = '{{$doctor->doc_name}}医生解答：{{$question->question}}';

        var url=location.href;
        $.ajax({
            type : "post",
            url : "{{url('api/wechat/get-js-api-packet')}}",//替换网址，xxx根据自己jssdk文件位置修改
            dataType : "json",
            data:{url:url},
            success : function(obj){
                if(obj.level == 'success'){
                    var data = obj.data;
                    wx.config({
                        appId: data.appId,
                        timestamp: data.timestamp,
                        nonceStr: data.nonceStr,
                        signature: data.signature,
                        jsApiList: [
                            "onMenuShareTimeline", //分享给好友
                            "onMenuShareAppMessage", //分享到朋友圈
                            "onMenuShareQQ", //分享到QQ
                            "onMenuShareWeibo" //分享到微博
                        ]
                    });
                }
            },
            error:function(data){
                alert("连接失败！");
            }
        });
        wx.ready(function (){
            var shareData = {
                title: shareTitle,
                desc: descContent,//这里请特别注意是要去除html
                link: lineLink,
                imgUrl: imgUrl
            };
            wx.onMenuShareAppMessage(shareData);
            wx.onMenuShareTimeline(shareData);
            wx.onMenuShareQQ(shareData);
            wx.onMenuShareWeibo(shareData);
        });
    });

</script>

{{--<div class="ax-subBtn checkMoreBtn" ng-if="info.isMine && info.status !== 40 &&  info.status !== 35" ng-click="goSquare()">--}}
{{--<button class="start-chat">--}}
{{--<span class="start-chat-text">查看更多问题</span></button>--}}
{{--</div>--}}
{{--<div class="detail-qalist" ng-if="recommend.length && !info.isMine">--}}
{{--<p class="detail-qalist-title" ng-if="ifFromQuestionFlag">相似问题</p>--}}
{{--<p class="detail-qalist-title" ng-if="!ifFromQuestionFlag">值得一看</p>--}}
{{--<div class="detail-qalist-one " ng-repeat="recommondSub in recommend">--}}
{{--<a class="qaList-one-content" ng-click="goDetail(recommondSub.questionId,recommondSub.recommendType)">--}}
{{--<div class="question">--}}
{{--<span class="lable">问题：</span>recommondSub.questionDes</div>--}}
{{--<p class="detail-qalist-docInfo">recommondSub.docInfo.docName-recommondSub.docInfo.titleName，recommondSub.docInfo.hospitalName</p></a>--}}
{{--</div>--}}
{{--</div>--}}
{{--<!--ax-wx-->--}}
{{--<div class="qr" ng-class="{qrMarginTop8 : recommend.length && !info.isMine}" ng-if="qr">--}}
{{--<p>长按下方二维码关注安心健康公众号</p>--}}
{{--<p>查看更多专家回答</p>--}}
{{--<img ng-src="qr" /></div>--}}
{{--<!--/ax-wx-->--}}
{{--<div class="ax-nodata" ng-if="!hasData">--}}
{{--<style>.nodata{position:absolute;top:50%;width:100%;text-align:center;color:rgba(0,0,0,.54);font-size:.4rem}</style>--}}
{{--<div class="nodata">--}}
{{--<p>正在加载</p>--}}
{{--</div>--}}
{{--</div>--}}
</body>
</html>